﻿<%@ Page Title="" Language="C#" MasterPageFile="~/CardCenter/card5.master" AutoEventWireup="true" CodeFile="CardBlanceSelect.aspx.cs" Inherits="CardCenter_CardBlanceSelect" %>

<asp:Content ID="Content2" ContentPlaceHolderID="head1" Runat="Server">
    <script type="text/javascript" src="../Scripts/jquery-min-lastest.js"></script>
    <script type="text/javascript" src="../Scripts/jquery-ui-all-min-lastest.js"></script>
    <link type="text/css" href="../css/style.css" rel="Stylesheet" />
    
    <% if (false)
       {%><script src="../Scripts/jquery-vsdoc-lastest.js" type="text/javascript"></script>
    <% }%>
    
    <script type="text/javascript">

        $(function() {

            var regNum = /[\d+]/ig;

            //使用jQuery进行表单验证
            $("input[id*=btn_Select]").bind("click", function() {

                var $cardNO = $("input[id*=txt_CardNO]").val();
                var $cardPwd = $("input[id*=txt_CardPwd]").val();

                if ($cardNO == "") {
                    alert("充值卡号不能为空！");
                    return false;
                }

                if (!regNum.test($cardNO)) {
                    alert("充值卡号必须为数字！");
                    $("input[id*=txt_CardNO]").val("");
                    return false;
                }

                if ($cardPwd == "") {
                    alert("卡号密码不能为空！");
                    return false;
                }

                return true;
            });
            
        });
    </script>
    
    <style type="text/css">
        .style1
        {
            width: 53%;
            height: 132px;
        }
        .style2
        {
            width: 16px;
        }
        .style3
        {
            width: 127px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="r" Runat="Server">
<form id="form1" runat="server">
<div id="r1"><div id="r11"><a href="OnlinePurchaseCardStep1.aspx">&nbsp; &nbsp;卡务中心</a><a href="CardBlanceSelect.aspx">&nbsp; &nbsp; >></a><span>咨询卡余额查询</span></div></div>
    <div style="width:729px; height:41px;">
    <div style="width:20px; height:41px; float:left;"></div>
    <div style="width:32px; height:41px; float:left; background-image:url(../Images/CardCenterImg/cai1.jpg);"></div>
    <div style="width:100px; height:41px; float:left;text-align:center; font-size:12px; font-weight:bold; line-height:41px;">填写帐户信息</div>
    <div style="width:24px; height:31px; float:left; background-image:url(../Images/CardCenterImg/hui2.jpg);"></div>
    <div style="width:100px; height:41px; float:left;text-align:center; font-size:12px; font-weight:bold; line-height:31px; color:Gray;">查询结果</div>
    </div>
    <div style="border-top:16px #fff solid; line-height:16px;"></div>
    <div style="border-bottom:8px #fff solid; border-top:dotted thin #ccc; line-height:8px; width:729px;"></div>
    <div style="width:729px; font-size:13px; font-weight:bold;">
        <table class="style1">
            <tr>
                <td class="style2">&nbsp;
                    </td>
                <td class="style3">
                    <span>咨询卡卡号</span>:</td>
                <td>
                    <asp:TextBox ID="txt_CardNO" runat="server" BorderColor="Black" BorderWidth="1px" 
                        Height="20px" Width="230px"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="style2">&nbsp;
                    </td>
                <td class="style3">
                    <span>咨询卡密码</span>:</td>
                <td>
                   <asp:TextBox ID="txt_CardPwd" runat="server" BorderColor="Black" BorderWidth="1px" 
                        Height="20px" Width="230px" TextMode="Password"></asp:TextBox></td>
            </tr>
        </table>
    
    </div>
    <div style="width:729px; height:32px;border-top:16px #fff solid; line-height:16px;"><div style="width:20px; height:32px; float:left;"></div>
        <asp:ImageButton ID="btn_Select" runat="server" 
            ImageUrl="../Images/CardCenterImg/querentijiao.jpg" 
            onclick="btn_Select_Click" />
    </div>
    <div style="border-top:16px #fff solid; line-height:16px;"></div>
    <div style="border-bottom:8px #fff solid; border-top:dotted thin #ccc; line-height:8px; width:729px;"></div>
    <div style="width:729px; height:270px;">
    <fieldset>
    <legend style="font-size:12px; color:#888; line-height:30px;">提示信息</legend>
    <p style="font-size:12px; color:#888;">请输入您的咨询卡卡号及密码；如有疑问请访问帮助中心</p>
    </fieldset>
    </div>
    </form>
</asp:Content>


